﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace FacialClub.Models.Entities
{
    /// <summary>
    /// Room
    /// </summary>
    [Bind(Include = "RoomTypeId,RoomName,RoomDescription,IsActive,CreatedDate,ModifiedDate")]
    [MetadataType(typeof (RoomMetaData))]
    public partial class Room
    {
        #region Nested type: RoomData

        /// <summary>
        /// News Event Meta Data for Validation
        /// </summary>
        [Bind(Exclude = "RoomId")]
        public class RoomMetaData
        {
            /// <summary>
            /// RoomId
            /// </summary>
            [ScaffoldColumn(false)]
            public object RoomId { get; set; }

            /// <summary>
            /// RoomTypeId
            /// </summary>
            [ScaffoldColumn(false)]
            public object RoomTypeId { get; set; }

            /// <summary>
            /// Room Name
            /// </summary>
            [Required(ErrorMessage = "Room Name is required")]
            [StringLength(160)]
            [DisplayName("Room Name")]
            public string RoomName { get; set; }

            /// <summary>
            /// Room Description
            /// </summary>
            [Required(ErrorMessage = "Room Description is required")]
            [DisplayName("Room Description")]
            public string RoomDescription { get; set; }

            /// <summary>
            /// Status of the News Event
            /// </summary>
            public bool IsActive { get; set; }

            /// <summary>
            /// Creation Date
            /// </summary>
            public DateTime CreatedDate { get; set; }

            /// <summary>
            /// Modified Date
            /// </summary>
            public DateTime ModifiedDate { get; set; }
        }

        #endregion
    }
}